#include<bits/stdc++.h>
#define ll long long
using namespace std;
int r[100005],cnt[100005];
int main(){
    //xu huang yi qiang
    //#icnlued(bit\sdtc.h
    //usign namspaec sdt
    //itn mian
    //retrun 0
    //fropen("duel.in.txt","w",stdin);
    //freopen("duel.ans","r",stdout);
    //998244353 114514 1919810
    /*
    If you are looking for confusing codes, I'll give you this song because of the lines above:
    We're no strangers to love
    You know the rules and so do I
    A full commitment's what I'm thinking for
    You wouldn't get this from any other guy
    I just wanna tell you how I'm feeling
    Gotta make you understand
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    We know Richard Wang Sulong
    Your heart's been aching but Luo Zhixiang to say it
    Inside we both know what's been Guo Ainong
    We've known the game and were gonna play it
    And if you ask me how I'm feeling
    Don't tell me you're to blind to see
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    */

    //so below those are my code, and >>>DON'T forget to DELETE the // of freopen<<<
    //si lu: yisi wei tanxin, xian shishi (ruguo zhenshi chun tanxin najiu youdian shui le ba
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,maxn=0,minn=100000;
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&r[i]);
        cnt[r[i]]++;
        maxn=max(maxn,r[i]);
        minn=min(minn,r[i]);
    }
    int ans=0,maxcnt=0;
    for(int i=minn;i<=maxn;i++){
        if(cnt[i]>maxcnt){
            maxcnt=cnt[i];
            ans=cnt[i];
        }
    }
    printf("%d",ans);
    return 0;
}
